class User {
    String name
    String password
    String email
    List plans
    List diarys
    static hasMany = [plans : Plan, diarys : Diary]
    static constraints = {
        email(email:true, unique:true)
        password(password:true)
    }
}